﻿<%@ Page Language="c#" CodeBehind="Contract_HostDomain_Extend.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_gSDMS.contract.Contract_HostDomain_Extend" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">

<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper gSDMS">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
        <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        <div class="modulecontent">
            <fieldset>
<%--            <asp:UpdatePanel ID='updatePanel' runat="server" >
                <ContentTemplate>--%>

                <%--<mp:SiteLabel ID="lblInfo" CssClass="title info" runat="server" ResourceFile="gSDMSResource" ConfigKey="gSDMSHostingPackage" />--%>
                <div class="div_title">
                    <a href="/gsdmsmodule/contract/contract_hostdomain.aspx?pageid=29">Contract hosting-domain</a>
                    &nbsp;>&nbsp;
                    <a href="#">List</a>
                </div>
                <br />
                <div class="div_Edit div_search">
                    <table cellpadding='3' cellspacing='0' border='0' class="tb_search" >
                        <tr style="">
                            <td class="title">From date:</td>
                            <td class="input"> 
                                <telerik:RadDatePicker ID="datContract_Date_from" runat="server" 
                                        DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10" Width="120px" Height="18px"
                                        DatePopupButton-Width="23px" DatePopupButton-Height="23px" 
                                >
                                    <Calendar>
                                        <SpecialDays>
                                            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </telerik:RadDatePicker>
                                <span class='span_note'>(dd/MM/yyyy)</span>
                            </td>
                            
                            <td class="title">To date:</td>
                            <td class="input"> 
                                <telerik:RadDatePicker ID="datContract_Date_to" runat="server" 
                                        DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10" Width="120px" Height="18px"
                                        DatePopupButton-Width="23px" DatePopupButton-Height="23px"
                                >
                                    <Calendar>
                                        <SpecialDays>
                                            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </telerik:RadDatePicker>
                                <span class='span_note'>(dd/MM/yyyy)</span>
                            </td>
                        </tr>

                        <tr>
                            <td class="title">Contract code:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboContract_Code" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="" Filter="Contains">
                                </telerik:RadComboBox>
                            </td>
                            
                            <td class="title">Company name:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboCompany_Name" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="" Filter="Contains">
                                </telerik:RadComboBox>
                            </td>
                        </tr>

                        <tr>
                            <td class="title">Hosting package:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboHostingPackage" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="">
                                </telerik:RadComboBox>
                            </td>
                                                        
                            <td class="title">Domain name:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboDomainName" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="">
                                </telerik:RadComboBox>
                            </td>
                        </tr>

                        
                        <tr>
                            <td class="title">Out of date:</td>
                            <td class="input"><asp:CheckBox ID="chkOutOfDate" runat="server" CssClass="chkInput" Checked="false" ClientID="chkOutOfDate_"></asp:CheckBox></td>
                                                        
                            <td class="title">Deleted:</td>
                            <td class="input"><asp:CheckBox ID="chkDeleted" runat="server" CssClass="chkInput" Checked="false" ></asp:CheckBox></td>
                        </tr>
                        
                        <tr style="display:none">
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:ImageButton ID='btnSearch' runat="server" ImageAlign="Left" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/search.png" Width="82px" Height="23px" />
                                 <div class="div_AddNew div_Edit">
                                    <button id="btnAddNew" class="btn_01" type="reset" onclick="javascript:location.href='/gsdmsmodule/contract/contract_hostdomain_edit.aspx?pageid=29'">Add new</button>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <br />
                <div class="gSDMS_Grid">
                    <asp:GridView ID="grdHostngContractDomain" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                        AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="20" PagerSettings-Position="Bottom" PagerStyle-HorizontalAlign="Right"
                        CssClass="css_grid" DataKeyNames=""
                        >                        
                        <AlternatingRowStyle CssClass='AlternatingRowStyle' />
                        <EditRowStyle CssClass='EditRowStyle' />
                        <FooterStyle CssClass='FooterStyle' />
                        <HeaderStyle CssClass='HeaderStyle' />
                        <PagerStyle CssClass='PagerStyle' HorizontalAlign="Right" />
                        <RowStyle CssClass='RowStyle' />
                        <SelectedRowStyle CssClass='SelectedRowStyle' />
                   
                        <Columns >
                            <asp:TemplateField HeaderText="#" ItemStyle-CssClass="stt">
                                <ItemTemplate><%# grdHostngContractDomain.PageIndex * grdHostngContractDomain.PageSize + grdHostngContractDomain.Rows.Count + 1%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Contract_Code" ItemStyle-CssClass="text" SortExpression='Contract_Code'>
                                <ItemTemplate><%#Eval("Contract_Code")%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Company_Name" ItemStyle-CssClass="txt" SortExpression="Company_Name">
                                <ItemTemplate><%#Eval("Company_Name")%></ItemTemplate></asp:TemplateField>

                            <%--------%>

                            <asp:TemplateField HeaderText="Hosting_Contract_Hosting_ID" ItemStyle-CssClass="txt" SortExpression="Hosting_Contract_Hosting_ID" Visible="false">
                                <ItemTemplate><%#Eval("Hosting_Contract_Hosting_ID")%></ItemTemplate></asp:TemplateField>

                            <asp:TemplateField HeaderText="PackageName" ItemStyle-CssClass="txt" SortExpression="PackageName">
                                <ItemTemplate><%#Eval("PackageName")%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Size" ItemStyle-CssClass="txt" SortExpression="Size">
                                <ItemTemplate><%#Eval("Size")%></ItemTemplate></asp:TemplateField>
                                                        
                            <asp:TemplateField HeaderText="Start_Date" ItemStyle-CssClass='date' SortExpression="Start_Date">
                                <ItemTemplate><%# Eval("Start_Date").ToString()=="" ? "" : Convert.ToDateTime(Eval("Start_Date")).ToString("dd/MM/yyyy")%></ItemTemplate></asp:TemplateField>

                            <asp:TemplateField HeaderText="End_Date" ItemStyle-CssClass="date" SortExpression="End_Date">
                                <ItemTemplate><div class='<%# ud_gSDMS.Code_Service.Library.GiveAlarm(Eval("End_Date"),"") %>' ><%# Eval("End_Date").ToString() == "" ? "" : Convert.ToDateTime(Eval("End_Date")).ToString("dd/MM/yyyy")%></div></ItemTemplate></asp:TemplateField>
                            
                            <%--------%>

                            <asp:TemplateField HeaderText="Hosting_Contract_Domain_ID" ItemStyle-CssClass="txt" SortExpression="World_Domain" Visible="false">
                                <ItemTemplate><%#Eval("Hosting_Contract_Domain_ID")%></ItemTemplate></asp:TemplateField>

                            <asp:TemplateField HeaderText="World_Domain" ItemStyle-CssClass="txt" SortExpression="World_Domain">
                                <ItemTemplate><%#Eval("World_Domain")%></ItemTemplate></asp:TemplateField>

                            <asp:TemplateField HeaderText="VietNam_Domain" ItemStyle-CssClass="txt" SortExpression="VietNam_Domain">
                                <ItemTemplate><%#Eval("VietNam_Domain")%></ItemTemplate></asp:TemplateField>
                                
                            <asp:TemplateField HeaderText="Start_Date_DM" ItemStyle-CssClass='date' SortExpression="Start_Date_DM">
                                <ItemTemplate><%# Eval("Start_Date_DM").ToString() == "" ? "" : Convert.ToDateTime(Eval("Start_Date_DM")).ToString("dd/MM/yyyy")%></ItemTemplate></asp:TemplateField>

                            <asp:TemplateField HeaderText="End_Date_DM" ItemStyle-CssClass='date' SortExpression="End_Date_DM">
                                <ItemTemplate> <div class='<%# ud_gSDMS.Code_Service.Library.GiveAlarm(Eval("End_Date_DM"), "") %>' > <%# Eval("End_Date_DM").ToString() == "" ? "" : Convert.ToDateTime(Eval("End_Date_DM")).ToString("dd/MM/yyyy")%> </div></ItemTemplate></asp:TemplateField>
                            
                            <%--------%>
                                                                
                            <asp:TemplateField HeaderText="Edit" ItemStyle-CssClass="edit-del">
                                <ItemTemplate>
                                    <a class="edit" href='<%# "/gsdmsmodule/contract/contract_hostdomain_edit.aspx?pageid=29&id=" + Eval("Hosting_Contract_ID") %>' title="Edit">&nbsp;</a>
                                </ItemTemplate></asp:TemplateField>

                            <asp:TemplateField HeaderText="Del" ItemStyle-CssClass="edit-del" Visible="false">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnDelete" CommandName="delete" CommandArgument='<%# Eval("Hosting_Contract_ID") %>' CssClass="delete" runat="server" ToolTip="Delete" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/delete.png" OnClientClick="return confirm('Do you want to delete?')"/>
                                </ItemTemplate></asp:TemplateField>
                        </Columns>

                        <EmptyDataTemplate>
                            <div class="div_dataEmpty">Data not found!</div>
                        </EmptyDataTemplate>
                    </asp:GridView>

                   
                  
                </div>
<%--                </ContentTemplate>
            </asp:UpdatePanel>--%>
                
            </fieldset>
        </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
